/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved.
 */

import { globalData } from '../../../../src/base/internal/data/global-data';

describe('test global data', () => {

  test('test global data init&get', () => {
    globalData.init({
      modulePackageName: 'hvigor'
    }, {
      _: [],
      sync: true,
      prop: '1'
    });

    expect(globalData.cliEnv.modulePackageName).toBe('hvigor');
    expect(globalData.cliOpts.sync).toBeTruthy();
    expect(globalData.cliOpts.prop).toBe('1');
  });
});
